﻿<Page x:Class="OpenSearchExplorer.QueryResultsPage"
      xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
      xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
      xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
      xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
      mc:Ignorable="d" 
      d:DesignHeight="505" d:DesignWidth="600"
	Title="Query Results">

    <Grid Height="Auto">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="*" />
            <RowDefinition Height="Auto" />
        </Grid.RowDefinitions>
        <TextBlock Margin="5, 5, 5, 5" Name="queryLabel" Loaded="QueryResultsLabel_Loaded">Query Results</TextBlock>
        <TabControl  Name="QueryResponseTabs" Grid.Row="1">
            <TabItem Header="Text" Name="processedTextTab" Visibility="Collapsed">
                <ScrollViewer HorizontalScrollBarVisibility="Auto" VerticalScrollBarVisibility="Auto">
                    <TextBlock Name="queryResponseTextBlock"></TextBlock>
                </ScrollViewer>
            </TabItem>
            <TabItem Header="HTML" Name="htmlTab" Visibility="Collapsed">
                <WebBrowser Height="auto" Name="htmlViewer"></WebBrowser>
            </TabItem>
            <TabItem Header="Raw" Name="rawResponseViewTab">
                <avalonEdit:TextEditor xmlns:avalonEdit="http://icsharpcode.net/sharpdevelop/avalonedit"
                    Name="queryResponseRawView"
                    FontFamily="Consolas"
                    SyntaxHighlighting="XML"
                    FontSize="10pt"/>
            </TabItem>
        </TabControl>
        <Button Name="SaveAsButton" Content="Save As..." Grid.Row="2" HorizontalAlignment="Right" Margin="0,4,4,4" Click="SaveAsButton_Click" />
    </Grid>
</Page>
